import request from '@/utils/request'
export function mopLine() {
  return request({
    url: '/mopLine/all',
    method: 'get'

  })
}
export function getInfo1(data) {
  return request({
    url: '/mes/orderShow',
    method: 'get'
    // params:data
  })
}
export function leida(data) {
  return request({
    url: '/mes/orderShow/warn/',
    method: 'get'
    // params:data
  })
}
export function list(data) {
  return request({
    url: '/mes/orderShow/warn/list',
    method: 'get'
    // params:data
  })
}

export function getLv(data) {
  return request({
    url: '/mes/orderShow/statistical',
    method: 'get',
    params: data
  })
}
export function getJiaDong(data) {
  return request({
    url: '/mes/orderShow/utilizationRateData',
    method: 'get',
    params: data
  })
}
export function jiaMi(obj) {
  return request({
    url: `/supplier/enCode`,
    method: 'post',
    params: obj
  })
}
export function jieMi(obj) {
  return request({
    url: `/supplier/deCode`,
    method: 'get',
    params: obj
  })
}
export function getStatisticData() {
  return request({
    url: `/dataStatistics/getStatisticData`,
    method: 'get'

  })
}
export function pe(type) {
  return request({
    url: `/mes/orderShow/pe/${type}`,
    method: 'get'

  })
}
export function ftq(type) {
  return request({
    url: `/mes/orderShow/ftq/${type}`,
    method: 'get'

  })
}
export function ftqbydate(data) {
  return request({
    url: `/mes/orderShow/ftqbydate/`,
    method: 'get',
    params: data
  })
}
export function pebydate(data) {
  return request({
    url: `/mes/orderShow/pebydate`,
    method: 'get',
    params: data
  })
}
export function wipList(data) {
  return request({
    url: '/mes/orderShow/WIP',
    method: 'get',
    params: data
  })
}
export function wipListExport(data) {
  return request({
    url: '/mes/orderShow/WIP/export',
    method: 'get',
    responseType: 'arraybuffer',
    params: data
  })
}
